package controls
{
	import starling.display.Quad;
	import starling.display.Sprite;
	import starling.events.Event;
	import starling.text.TextField;
	
	public class GameCell extends Sprite
	{
		public var numderCeil:int = 0 ;
		private var textF:TextField=new TextField(40,40,numderCeil.toString(),"Verdana",24,0x000000,true);
		public function GameCell()
		{
			super();
			addEventListener(Event.ADDED_TO_STAGE,init);
		}
		private function init(e:Event):void{
			removeEventListener(Event.ADDED_TO_STAGE,init);
			var bg:Quad = new Quad(40,40,0xFFBB34);
			addChild(bg);
			addChild(textF);
		}
		
		public function setNumber(number:int):void{
			numderCeil = number;
			textF.text = number.toString();
		}
	}
}